=form.error_messages
-form.inputs do
  .div
    %h1 Basic details
    
    =form.input :name, :hint=>"Unique name for the advert"
    =form.input :advertiser_name, :hint=>"Name for the advertiser"
    =form.input :max_views, :hint=>"Max views"
    =form.input :is_active
    =form.input :is_iframe
    =form.input :iframe_src, :input_html=>{:cols=>"80", :rows=>"5"}
    =form.input :is_script
    =form.input :script_content, :input_html=>{:cols=>"80", :rows=>"5"}
    =form.input :is_image_banner
    =form.input :image_banner_src
    =form.input :image_banner_href, :input_html=>{:cols=>"80", :rows=>"5"}
    =form.input :width
    =form.input :height
    =form.input :is_custom_banner
    =form.input :custom_banner_image
    =form.input :custom_banner_href, :input_html=>{:cols=>"80", :rows=>"5"}